const install = (Vue, vm) => {

	// 参数配置对象
	const config = vm.vuex_config;
	vm.$u.api = {
		// 登录接口
		login: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/user/login', params),
		// 发送验证码
		sendCode: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/user/captcha/send', params),
		// 按条件查询广告信息接口
		adList: (params = {}) => vm.$u.postJson(config.adminPath + '/security/ad/list', params,'',false),
		// 应用公告列表查询接口
		appNoticeList: (params = {}) => vm.$u.postJson(config.adminPath + '/security/appNotice/list', params),
		// 授权应用功能维护列表信息接口
		listForApp: (params = {}) => vm.$u.postJson(config.adminPath +
			'/security/authorizedAppFunction/listForApp', params,false),
		// 意图类型集合
		allIntentions: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allIntentions', params),
		// 教育情况集合
		allEducationTypes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allEducationTypes',
			params),

		// 希望何时结婚集合
		allHopeMarriageTimes: (params = {}) => vm.$u.postJson(config.adminPath +
			'/member/enum/allHopeMarriageTimes', params),
		// 是否想要孩子集合
		allHopeWantChilds: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeWantChilds',
			params),
		// 有没有孩子集合
		allHopeHasChilds: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeHasChilds',
			params),
		// 体型集合
		allHopeShapes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeShapes', params),
		// 是否喝酒集合
		allHopeDrinks: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeDrinks', params),
		// 是否吸烟集合
		allHopeSmokes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeSmokes', params),
		// 意向客户分页查询
		customerPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/page', params),
		// 查询所有授权区域列表
		allMallAndStore: (params = {}) => vm.$u.postJson(config.adminPath +
			'/base/store/authorized/allMallAndStore', params),
		// 查询门店授权店铺列表
		getcurlist: (params = {}) => vm.$u.postJson(config.adminPath + '/base/store/authorized/list', params),
		// 证件类型集合
		allCertificateTypes: (params = {}) => vm.$u.postJson(config.adminPath +
			'/member/enum/allCertificateTypes', params),
		// 情感状态集合
		allMarriageStates: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allMarriageStates',
			params),
			// 希望婚框
			allHopeMarriageStates: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeMarriageStates',
				params),
		// 小程序意向客户新增接口
		addcustomer: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/add', params),
		// 客户期望对象资料更新
		updatehope: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/hope/update',
			params),
		// 年收入集合
		allYearIncomes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allYearIncomes',
			params),

		// 最小年收入集合
		allMinYearIncomes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allMinYearIncomes',
			params),
		// 最小月收入集合
		allMinMonthIncomes: (params = {}) => vm.$u.postJson(config.adminPath +
			'/member/enum/allMinMonthIncomes',
			params),

		// 月收入集合
		allMonthIncomes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allMonthIncomes',
			params),
		// // 客户期望对象资料更新
		// updatehope: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/hope/update',
		// 	params),
		// 性别集合
		allGenders: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allGenders', params),
		// 小程序意向客户作废
		cancelCustomer: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/cancel',
			params),

		// 小程序意向客户手机号查询
		getmobile: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/mobile/get', params),
		// 验证码发送
		captcha: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/captcha/send', params),
		// 小程序意向客户转APP
		toApp: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/toApp', params),
		// 小程序意向客户编辑数据
		detailForUpdate: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/customer/detailForUpdate', params),
		// 客户期望对象资料详情编辑数据
		hopedetailForUpdate: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/customer/hope/detailForUpdate', params),
		// 小程序意向客户详情
		customerdetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/detail',
			params),


		// 分页查询APP用户
		memberpage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/page', params),
		// 查询VIP类型列表
		cardTypelist: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/cardType/list',
			params),
		// APP用户详情
		memberdetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/detail', params),
		// APP用户手机号查询
		getmembermobile: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/mobile/get',
			params),
		// VIP开通记录分页查询
		vipOpenRecord: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/vipOpenRecord/page',
			params),
		// VIP开通记录详情
		vipOpenRecorddetail: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/vipOpenRecord/detail', params),
		// 查询VIP套餐列表
		vipOpenRecordList: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/vipOpenRecord/list',
			params),
		// 选择VIP套餐
		vipOpenRecordSelect: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/vipOpenRecord/select', params),
		// 认证记录分页查询
		authRecord: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/authRecord/page', params),
		// 认证记录详情
		authRecordDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/authRecord/detail',
			params),
		// 服务记录分页查询
		serviceRecord: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/serviceRecord/page',
			params),
		// 服务记录详情
		serviceRecordDetail: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/serviceRecord/detail', params),
		// APP用户查询
		memberGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/get', params),
		// 服务类型集合
		allServiceTypes: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/enum/allServiceTypes',
			params),
		// 认证类型集合
		allAuthTypes: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/enum/allAuthTypes', params),
		// VIP开通记录新增
		vipOpenRecordAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/vipOpenRecord/add',
			params),
		// 认证记录新增
		authRecordAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/authRecord/add', params),
		// 服务记录新增
		serviceRecordAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/serviceRecord/add',
			params),
		// 加盟记录新增修改
		joinOrderAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/joinOrder/addUpdate',
			params),
		// 加盟记录提交审核
		joinOrderCommit: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/joinOrder/commit',
			params),
		// 加盟记录分页查询
		joinOrderPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/joinOrder/page', params),
		// 加盟记录详情
		joinOrderDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/joinOrder/detail',
			params),
		// 加盟记录编辑数据
		joinOrderDetailForUpdate: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/joinOrder/detailForUpdate', params),
		// 我的团队分页查询
		miniUserPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/page', params),
		// 用户详情
		miniUserDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/detail',
			params),
		// 上级信息
		miniUsersuperDetail: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/miniUser/superDetail', params),
		// 我的订单分页查询
		orderPageOrder: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/order/pageOrder',
			params),
		// 订单详情
		orderDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/order/detail', params),
		// 团队订单分页查询
		orderpageTeamOrder: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/order/pageTeamOrder',
			params),
		// 佣金来源分类查询
		reasonList: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/reasonList',
			params),
		// 佣金分页查询
		commissionPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/page',
			params),
		// 佣金余额查询
		balanceGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/balance/get',
			params),
		// 提现方式查询
		cashAccountList: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/commission/cashAccount/list', params),
		// 佣金提现规则查询
		ruleGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/cash/rule/get',
			params),
		// 提现手续费计算
		cashCal: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/cash/cal', params),
		// 脱敏手机号查询（用于发送验证码展示）
		mobileGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/mobile/get',
			params),
		// 提现验证码发送
		captchaSend: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/captcha/send',
			params),
		// 佣金提现
		commissionCash: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/cash',
			params),
		// 佣金提现记录分页查询
		cashRecordPage: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/commission/cashRecord/page', params),
		// 佣金提现记录详情查询
		cashRecordDetail: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/commission/cashRecord/detail', params),
		// 姓名查询
		realNameGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/cashAccount/realName/get',
			params),
		// 提现账户解绑
		cashAccountUnbind: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/cashAccount/unbind',
			params),
		// 提现账户绑定
		cashAccountbind: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/cashAccount/bind',
			params),
		// 查询朋友圈分类列表
		friendCircleCategory: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/friendCircleCategory/list', params),
		// 查询话术分类列表
		speechCategory: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/speechCategory/list',
			params),
		// 话术分页查询
		speechPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/speech/page', params),
		// 朋友圈素材分页查询
		friendCirclePage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/friendCircle/page',
			params),


		// 订单及金额总数统计
		boardOrderGetTotal: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/board/order/getTotal', params,false),
		// 客户及会员总数统计接口
		boardCustomerGetTotal: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/board/customer/getTotal', params,false),
		// 收入统计
		boardIncomeGetTotal: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/board/income/getTotal', params,false),
		//排名查询
		boardRankGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/board/rank/get', params,false),
		// 登录用户详情
		loginUser: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/loginUser', params,false),
		// 登录用户头像修改
		updateAvatar: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/updateAvatar',
			params),
		// 查询小程序用户卡类型定义
		enabledAll: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/miniUserCardType/enabled/all', params),
		// 查询所有专享权益信息
		miniBenefitenabledAll: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/miniBenefit/enabled/all', params),
		// 获取微信小程序OPENID
		getWechatOpenId: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/miniUser/getWechatOpenId', params),
		// 软件服务订单新增
		softOrderAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/softOrder/add', params),
		// 获取支付发起参数
		getPayStartParams: (params = {}) => vm.$u.postJson(config.adminPath +
			'/mini/mini/pay/getPayStartParams', params),
		// 软件服务订单分页查询
		softOrderPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/softOrder/page', params),

		// 验证码发送
		miniUsercaptcha: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/captcha/send',
			params),
		updatePassword: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/updatePassword',
			params),
		// 退出登录
		logout: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/logout', params),
		// 获取微信小程序OPENID
		// getWechatOpenId: (params = {}) => vm.$u.postJson(config.adminPath +
		// 	'/mini/mini/miniUser/getWechatOpenId', params),
		// 查询支付方式接口
		payPropFind: (params = {}) => vm.$u.postJson(config.adminPath +
			'/security/app/payProp/find', params),
		// 支付成功通知
		notifyPaySuccess: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/pay/notifyPaySuccess',
			params),
		// 文章列表查询 
		listByGroup: (params = {}) => vm.$u.postJson(config.adminPath + '/security/article/listByGroup',
			params,false),
		// 根据编码查询文章信息
		getByCode: (params = {}) => vm.$u.postJson(config.adminPath + '/security/article/getByCode', params),

		uploads: (params = {}) => vm.$u.postJson(config.adminPath + '/oss/file/uploads', params),
		// 职业集合    
		allVocations: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allVocations', params),
		// 排名提示
		rankTip: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/board/rankTip/get', params,false),
		// 银行卡信息查询
		bankInfo: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/cashAccount/bankInfo/get', params),
		// APP用户绑定红娘
		bindMiniUser: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/bindMiniUser', params),
		// 关于我们
		aboutUs: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/user/aboutUs', params),
		// 意见反馈记录新增
		feedbackRecord: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/feedbackRecord/add', params),
		// 根据编码查询收款账户信息
		
		receiveMoneyAccount: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/receiveMoneyAccount/getByCode', params),
		
		// /mini/miniUser/aboutUs
	};

}

export default {
	install
}
